<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>添加体检套餐</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../static/css/style.css" th:href="@{/css/style.css}"/>
</head>
<body>
<div th:replace="~{common/layout :: header}"></div>
<div th:replace="~{common/layout :: sidebar}"></div>
<div class="container mt-5">
    <h1 class="mb-4">添加体检套餐</h1>
    <form action="#" th:action="@{/setmeals/add}" th:object="${setmeal}" method="post" class="form-horizontal">
        <div class="form-group">
            <label class="control-label col-sm-2">套餐名称:</label>
            <div class="col-sm-10">
                <input type="text" th:field="*{name}" class="form-control" required/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-2">套餐类型:</label>
            <div class="col-sm-10">
                <select th:field="*{type}" class="form-control">
                    <option value="1">男士套餐</option>
                    <option value="0">女士套餐</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-2">套餐价格:</label>
            <div class="col-sm-10">
                <input type="number" th:field="*{price}" class="form-control" required/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-2">选择检查项:</label>
            <div class="col-sm-10">
                <select multiple th:field="*{checkitemIds}" class="form-control">
                    <option th:each="item : ${checkitems}" th:value="${item.ciId}" th:text="${item.ciName}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary">提交</button>
                <a href="/setmeals" class="btn btn-default">返回列表</a>
            </div>
        </div>
    </form>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>
